#define _CRT_SECURE_NO_WARNINGS 1

struct myclass
{
    bool operator()(int i, int j)
    {
        return i > j;
    }
}mycompare;

class Solution
{
public:
    int findKthLargest(vector<int>& nums, int k)
    {

        sort(nums.begin(), nums.end(), mycompare);
        return nums[k - 1];
    }
};